package org.eenie.dagger2.injector.modules;

import android.content.Context;

import org.eenie.dagger2.api.ForumApi;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Eenie on 2017/5/4.
 * Email: eeniework@gmail.com
 * Des:提供API相关的实例
 */

@Module
public class ApiModule {

    @Provides
    @Singleton
    ForumApi provideForumApi(Context context) {
        return new ForumApi(context);
    }
}
